package com.jy.wms.web;

/**
 * Created by Administrator on 2018/8/14.
 */
import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/inOperation")
public class WmsReturnGoods {
    @Autowired
    SysMenuService menuService;
    @RequestMapping(value = "/returnGoods/{menu}")
    public String toRoute(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "ReturnGoods/ReturnGoods";
    }
    @RequestMapping(value = "/addReturnGoods")
    public String addRoute() {
        return "ReturnGoods/addReturnGoods";
    }
}
